Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags. |
Initial OS Setup
Description: Bootable SD Card, OS Setup and ConfigurationTutorial Level:
Contents
+Bootable SD Image
- linaro images
[Source: http://wiki.gumstix.org/index.php?title=Installing_Linaro_Image] [Source(same): http://www.b1gtuna.com/2012/08/installing-linaro-image-on-gumstix-overo/] >> took a reboot first time (didn't erase nand, probably should have? NO!)
- (erased nand a different time, screwed up my rootfs image)
+(WG)Copy/edit over useful files
- + /etc/network/interfaces + /etc/wpa_supplicant/wpa_supplicant.conf + /root/willow-radius-ca.crt - edit hostname: sudo vim /etc/hostname; /etc/hosts + copy over useful files (root):
- willow-radius-ca.crt; wpa_supplicant*; network_bringup.sh
+LOAD AND BOOT!
+Initial Wireless connection
- (see Network modifications)
- *purge* NetworkManager - add /etc/network/interfaces, wpa_supplicant.conf
+Install useful tools:
- - openssh-server (for ssh-ing in - MUCH nicer) - vim (or your favorite cmd-line editor) - avahi-daemon avahi-autoipd libnss-mdns (for auto-discovery of ip) - locate (you're probably going to be doing some digging at some point)
- (at some point after installing, run: $ updatedb)
+Setup ssh
- - add password to user (root): $ passwd
ssh in
~ add color prompt: edit .bashrc; uncomment #force_color_prompt=yes
- (( auto-wireless on boot? ))
+Edit sources
- - may need to clean up duplicates if running armhf
> comment out duplicate source lists in sources.list.d/hwpack.*.list
+ add restricted universe multiverse to your existing sources.list
- so all 6 normal lines now read something like:
deb http://ports.ubuntu.com/ubuntu-ports/ precise main universe restricted multiverse
+Apt-get
- update, upgrade
- apt-get -f install apt-get upgrade (probably should have updated first)
- .. may need to repeat and fiddle a few times ...
+Change Hostname
- (instead of using 'linaro-alip' as machine name) 1) change machine name, edit /etc/hostname
- $ vi /etc/hostname
>> change name (e.g. linaro-alip) to your new name (ex: turtlecore)
- - find line where it says something like:
- 127.0.1.1 linaro-alip
- 127.0.1.1 turtlecore
- $ vi /etc/hostname
+Network Configuration - Stage 2
>Disable/Remove NetworkManager
- - at least need to disable it from startup
- - could use some combination of update-rc.d and stopping services... (see wifi resources)
>Remove
- - ran this...
- $ apt-get purge network-manager network-manager-gnome
- - but it also removed 'linaro-alip', which was worrisome... - so I reinstalled 'linaro-alip' (which reinstalled the nm ones)... - and then disabled instead:
>Disable
- - using multiple instructions..
- $ stop network-manager #stop daemon
$ update-rc.d -f NetworkManager remove #remove NetworkManager just for fun $ update-rc.d -f network-manager remove #remove actual service from startup and stuff $ vim /etc/init/network-manager.conf #edit conf file and add line 'manual' (without quotes), near the top
>> manual
- $ stop network-manager #stop daemon
- - should change and figure out WPA2 or VPN or something
- - at least need to disable it from startup
++ROS Setup (Fuerte)
- + Setup for Installation
- - install bootstrap dependencies - install core library dependencies - (skipping graphical deps) - install pip install
- (apt-get install python-pip, update with sudo pip install -U pip)
- $ sudo pip install -U rosinstall vcstools rospkg rosdep - had same "symbols not loaded" error with rosdep - had to use 'sudo' even though I was root or it wouldn't find it ... =/
>> NEXT: Install core libraries (turtlebot variant stuff)
- (should probably get user stuff setup too)
- - install bootstrap dependencies - install core library dependencies - (skipping graphical deps) - install pip install
Pre-tips
+ Serial connection